import request from "@/utils/request.js";

export const addBayInformationService=(data)=>{
  return request.post('/bay_information/addBayInformation',data)
}


export const getBayInformationsService=(data)=>{
  return request.get('/bay_information/getBayInformations',{
    params: data,
  })
}

export const updateService = (id,data) => {
  return request.put(`/bay_information/bayInformationDetail/${id}`, data);
}

export const deleteBaysService=(entities)=>{
  return request.post('/bay_information/deleteBays',{ entities })
}

/**
 * 批量新增胎位信息
 * @param list 胎位对象数组
 */
export const batchAddBayInformationService = (list) => {
  return request.post("/bay_information/batchAddBayInformation", {
    list
  });
};
